//
//  YCSellLeftTableViewCell.m
//  YCVillageDoctor
//
//  Created by zhangxiaoliang on 2017/7/3.
//  Copyright © 2017年 zhangxiaoliang. All rights reserved.
//

#import "YCSellLeftTableViewCell.h"

@implementation YCSellLeftTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectedBackgroundView = [[UIView alloc] initWithFrame:self.frame];
        self.selectedBackgroundView.backgroundColor = RGB(247, 247, 249);
        
        self.textLabel.highlightedTextColor = RGB(83, 140, 237);
        self.textLabel.font = [UIFont fontWithName:@"PingFang-SC-Light" size:14];
        self.textLabel.textAlignment = NSTextAlignmentCenter;
        UIView *lineView = [[UIView alloc]init];
        lineView.backgroundColor = RGB(243, 243, 243);
        [self.contentView addSubview:lineView];
        
        
        __weak __typeof(&*self)mySelf = self;
        [lineView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.bottom.mas_equalTo(mySelf.contentView.mas_bottom).mas_offset(1);
            make.left.mas_equalTo(mySelf.contentView.mas_left).mas_offset(0);
            make.right.mas_equalTo(mySelf.contentView.mas_right).mas_offset(0);
            make.height.mas_equalTo(1);
        }];
        
    }
    return self;
}
@end
